#! /bin/bash

 [ -z $1 ]  && echo "usage:`basename $0` interger" && exit 1

 loop=10
 index=1

 while [ $index -le $loop  ] 
 do
       number=$RANDOM
       echo $(( $number % $1))
       (( index++ ))
done
   
